package com.henry.controller;

import com.henry.service.OrderService;
import com.henry.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: spring-cloud-alibaba-demo
 * @description:
 * @author: Henry.zhang
 * @create: 2022-09-01 10:58
 */
@RestController
@RequestMapping("order")
public class OrderController {
    /*
    属性列表
    */
//    @Resource(name="aa")
    @Autowired
    private OrderService orderService;

    @RequestMapping("create")
    public R create(){

        orderService.create();
        return R.ok("");
    }


}
